package com.refactor.practice;


public class Rental {
	private Movie _movie;

	private int _dayRented;


	public Rental(Movie movie, int dayRented) {
		_movie = movie;
		_dayRented = dayRented;
	}

	public Movie getMovie() {
		return _movie;
	}

	public int getDayRented() {
		return _dayRented;
	}


	public double getChargeAmt(){
		return this._movie.getStrategy().getChargeAmt(_dayRented);
	}

	public int getFrequentRenterPoints() {
		return _movie.getStrategy().getFrequentRenterPoints(_dayRented);
	}
}
